//part1:C06:ex6.51.cpp
#include <iostream>
using namespace std;

void f()
{
    cout << "no arguments." << endl;
}
void f(int)
{
    cout << "has one int type argument." << endl;
}

void f(int, int)
{
    cout << "has two int type arguments." << endl;
}

void f(double a, int b)
{
    cout << "two arguments: double type, int type." << endl;
}
void f(double a, double b = 3.14)
{
    cout << "has tow double type arguments." << endl;
}

int main(void)
{
    f(2.56, 42);
    f(42);
    f(42, 0);
    f(2.56, 3.14);
    cout << "Bye!" << endl;

    return 0;
}
